package org.qiyu.live.im.router.provide.rpc;

import jakarta.annotation.Resource;
import org.apache.dubbo.config.annotation.DubboService;
import org.qiyu.live.im.dto.ImMsgBody;
import org.qiyu.live.im.router.interfacerpc.ImRouterRpc;
import org.qiyu.live.im.router.provide.service.ImRouterService;

/**
 * @Description: //todo
 * @Author: 张广焱
 * @Date: 2023-12-10 2:26
 */
@DubboService
public class ImRouterRpcImpl implements ImRouterRpc {
    @Resource
    private ImRouterService imRouterService;
    @Override
    public boolean sendMsg(Long objectId, ImMsgBody imMsgBody) {
        return imRouterService.sendMsg(objectId,imMsgBody);
    }
}
